package com.dongdongshop.mapper;

import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsExample;
import com.dongdongshop.pojo.TbGoodsVo;
import com.dongdongshop.pojo.VoTbGoodsDesc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbGoodsMapper {
    int countByExample(TbGoodsExample example);

    int deleteByExample(TbGoodsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbGoods record);

    int insertSelective(TbGoods record);

    List<TbGoods> selectByExample(TbGoodsExample example);

    TbGoods selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByExample(@Param("record") TbGoods record, @Param("example") TbGoodsExample example);

    int updateByPrimaryKeySelective(TbGoods record);

    int updateByPrimaryKey(TbGoods record);

    void savetbGoods(TbGoods tbGoods);

    List<TbGoodsVo> getFindAlls(@Param("id")String id,@Param("auditStatus")String auditStatus,@Param("goodsName")String goodsName);

    List<TbGoodsVo> getFindById(@Param("goodsName")String goodsName);

    VoTbGoodsDesc getFildAllId(@Param("id")Long id);
}